// 分页查询
function serch_bean(pageNum){
    //form表单序列化
    var all_val = $("#asdasd").serializeArray();
    var pageN = pageNum;
    $.get("/myspringboot/selectSupplierAll",{map:all_val,pageNum:pageN},function(pageInfo){
        var aaaa = "";  //将后端返回的参数转化为一个字符串
        $("#checkOne").empty();
        var result = pageInfo.data.list;
        yibu(pageInfo.data.pages,pageInfo.data.pageNum);
        for (var i = 0; i < result.length; i++) {    //循环遍历
            aaaa += "<tr><td>" + result[i].surId + "</td><td>" + result[i].surName + "</td><td>" +result[i].surCategory + "</td><td>" + result[i].surPlicense + "</td><td>" + result[i].surLicenseExpirationTime + "</td>" +
                "<td>" + result[i].surEnterpriseContact +"</td><td>" + result[i].sueBusinessContactNumber+ "</td><td>" + result[i].surBusinessScope+ "</td><td>" + result[i].surRegisteredAddress + "</td>" +
                "<td>" + result[i].surContactAddress + "</td><td>" + result[i].surPostalcode + "</td><td>" + result[i].surTotalAssets + "</td><td>" + result[i].surFax + "</td><td>" + result[i].surLegalPersonname + "</td>" +
                "<td>" + result[i].surLegalpersonIdcard + "</td><td>" + result[i].surEnterprise + "</td><td>" + result[i].surEmail + "</td><td>" + result[i].surUrl + "</td><td>" + result[i].surEnterpriseCodeNumber + "</td>" +
                "<td>" + result[i].surEnterpriseValidity + "</td><td>" + result[i].surBusinessLicense + "</td><td>" + result[i].surBusinessLicenseValidity + "</td><td>" + result[i].surEnterpriseLetter + "</td>" +
                "<td>" + result[i].surCreditNumber + "</td><td>" + result[i].surValidityOfCredit + "</td><td>" + result[i].surFixedAssets + "</td><td>" + result[i].surCompanyProfile + "</td><td>" + result[i].surBusinessLy + "</td>" +
                "<td>" + result[i].surRemarks + "</td></tr>";
            $("#checkOne").append(aaaa);
            aaaa = "";
        }
    })
}
// 多条件查询
function serch_bean1(pageNum){
    //form表单序列化
    var all_val = $("#asdasd").serializeArray();
    $.get("/myspringboot/selectSupplier",all_val,function(result){
        var aaaa = "";  //将后端返回的参数转化为一个字符串
        $("#checkOne").empty();
        for (var i = 0; i < result.length; i++) {    //循环遍历
            aaaa += "<tr><td>" + result[i].surId + "</td><td>" + result[i].surName + "</td><td>" +result[i].surCategory + "</td><td>" + result[i].surPlicense + "</td><td>" + result[i].surLicenseExpirationTime + "</td>" +
                "<td>" + result[i].surEnterpriseContact +"</td><td>" + result[i].sueBusinessContactNumber+ "</td><td>" + result[i].surBusinessScope+ "</td><td>" + result[i].surRegisteredAddress + "</td>" +
                "<td>" + result[i].surContactAddress + "</td><td>" + result[i].surPostalcode + "</td><td>" + result[i].surTotalAssets + "</td><td>" + result[i].surFax + "</td><td>" + result[i].surLegalPersonname + "</td>" +
                "<td>" + result[i].surLegalpersonIdcard + "</td><td>" + result[i].surEnterprise + "</td><td>" + result[i].surEmail + "</td><td>" + result[i].surUrl + "</td><td>" + result[i].surEnterpriseCodeNumber + "</td>" +
                "<td>" + result[i].surEnterpriseValidity + "</td><td>" + result[i].surBusinessLicense + "</td><td>" + result[i].surBusinessLicenseValidity + "</td><td>" + result[i].surEnterpriseLetter + "</td>" +
                "<td>" + result[i].surCreditNumber + "</td><td>" + result[i].surValidityOfCredit + "</td><td>" + result[i].surFixedAssets + "</td><td>" + result[i].surCompanyProfile + "</td><td>" + result[i].surBusinessLy + "</td>" +
                "<td>" + result[i].surRemarks + "</td></tr>";
            $("#checkOne").append(aaaa);
            aaaa = "";
        }
    })
}